<template>
<div>

</div>
</template>

<script>
import {get_user_info} from "@/request/api";

export default {
  name: "index",
  methods:{
    user_info(){
      get_user_info().then(res =>{
        console.log(res);
        if (res.user_type == 1){
          this.$router.push('/user')
        }else if(res.user_type == 2){
          this.$router.push('/org')
        }else if(res.user_type == 3){
          this.$router.push('/admin')
        }
      })
    }
  },
  created() {
    this.user_info();
  }
}
</script>

<style scoped>

</style>